logic to count even and odd elements of an array

visit shbcf.ru